package com.rrjjg.app.admin.api.vo;

import com.rrjjg.app.core.utils.ValidationUtil;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * ----------------------------------------------------------------------------- <br>
 * 功能 :  <br>
 * ----------------------------------------------------------------------------- <br>
 * 作者 : Vayne <br>
 * 时间 : 2023/4/8 <br>
 */
@Accessors(chain = true)
@Data
public class PlatformVo implements Serializable {
    @NotNull(message = "id不能为空",groups = {ValidationUtil.update.class,ValidationUtil.del.class})
    private Long id;
    @NotBlank(message = "平台名不能为空",groups = {ValidationUtil.add.class, ValidationUtil.update.class})
    private String name;
    @NotBlank(message = "平台编码不能为空",groups = {ValidationUtil.add.class, ValidationUtil.update.class})
    private String core;
    @NotNull(message = "父id不能为空",groups = {ValidationUtil.add.class, ValidationUtil.update.class})
    private Long pid;
    private String details;


}
